import java.awt.List;


public class DetectorCommands {


	private List commands;
	private static DetectorCommands detCmd;

	public DetectorCommands(){
		initCommands();
	}

	/**
	 * @return the commands
	 */
	public List getCommands() {
		return commands;
	}

	/**
	 * @param commands the commands to set
	 */
	public void setCommands(List commands) {
		this.commands = commands;
	}

	public static DetectorCommands getInstance(){
		if(detCmd == null)
			detCmd = new DetectorCommands();

		return detCmd;
	}

	private void initCommands(){
		commands = new List();

		commands.add("cmd;moving;stop"); //0
		commands.add("cmd;moving;start"); //1
		commands.add("cmd;LightSensor;stop"); //2
		commands.add("cmd;LightSensor;start"); //3
		commands.add("cmd;DistanceSensor;stop"); //4
 		commands.add("cmd;DistanceSensor;start"); //5
		commands.add("cmd;XaccelerationSensor;stop"); //6
		commands.add("cmd;XaccelerationSensor;start"); //7
		commands.add("cmd;YaccelerationSensor;stop"); //8
		commands.add("cmd;YaccelerationSensor;start"); //9
		commands.add("cmd;ZaccelerationSensor;stop"); //10
		commands.add("cmd;ZaccelerationSensor;start"); //11
		commands.add("cmd;DirectionSensor;stop"); //12
		commands.add("cmd;DirectionSensor;start"); //13
		commands.add("cmd;TempraturSensor;stop"); //14
		commands.add("cmd;TempraturSensor;start"); //15
	}



}
